
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module LineParser</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>LineParser</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/media/disk-1/data/zdstack/trunk/ZDStack/LineParser.py">/media/disk-1/data/zdstack/trunk/ZDStack/LineParser.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="logging.html">logging</a><br>
</td><td width="25%" valign=top><a href="re.html">re</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="LineParser.html#LineParser">LineParser</a>
</font></dt></dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="LineParser">class <strong>LineParser</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#LineParser">LineParser</a>&nbsp;parses&nbsp;lines&nbsp;into&nbsp;events.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="LineParser-__init__"><strong>__init__</strong></a>(self, regexps)</dt><dd><tt>Initializes&nbsp;a&nbsp;LinePraser.<br>
&nbsp;<br>
regexps:&nbsp;a&nbsp;class&nbsp;whose&nbsp;member&nbsp;regexps&nbsp;map&nbsp;to&nbsp;event&nbsp;types</tt></dd></dl>

<dl><dt><a name="LineParser-generic_line_to_event"><strong>generic_line_to_event</strong></a>(self, event_dt, line)</dt><dd><tt>Generically&nbsp;parses&nbsp;a&nbsp;line&nbsp;into&nbsp;an&nbsp;event.<br>
&nbsp;<br>
event_dt:&nbsp;a&nbsp;datetime&nbsp;representing&nbsp;the&nbsp;time&nbsp;of&nbsp;the&nbsp;event<br>
line:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;line&nbsp;itself.</tt></dd></dl>

<dl><dt><a name="LineParser-get_event"><strong>get_event</strong></a>(self, event_dt, line)</dt><dd><tt>Returns&nbsp;a&nbsp;list&nbsp;of&nbsp;events&nbsp;that&nbsp;a&nbsp;line&nbsp;represents.<br>
&nbsp;<br>
event_dt:&nbsp;a&nbsp;datetime&nbsp;representing&nbsp;the&nbsp;time&nbsp;of&nbsp;the&nbsp;event<br>
line:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;line&nbsp;itself.</tt></dd></dl>

<dl><dt><a name="LineParser-line_to_death_event"><strong>line_to_death_event</strong></a>(self, event_dt, line)</dt><dd><tt>Parses&nbsp;a&nbsp;line&nbsp;into&nbsp;a&nbsp;death&nbsp;event.<br>
&nbsp;<br>
event_dt:&nbsp;a&nbsp;datetime&nbsp;representing&nbsp;the&nbsp;time&nbsp;of&nbsp;the&nbsp;event<br>
line:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;line&nbsp;itself.</tt></dd></dl>

<dl><dt><a name="LineParser-line_to_join_event"><strong>line_to_join_event</strong></a>(self, event_dt, line)</dt><dd><tt>Parses&nbsp;a&nbsp;line&nbsp;into&nbsp;a&nbsp;join&nbsp;event.<br>
&nbsp;<br>
event_dt:&nbsp;a&nbsp;datetime&nbsp;representing&nbsp;the&nbsp;time&nbsp;of&nbsp;the&nbsp;event<br>
line:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;line&nbsp;itself.</tt></dd></dl>

<dl><dt><a name="LineParser-line_to_map_event"><strong>line_to_map_event</strong></a>(self, event_dt, line)</dt><dd><tt>Parses&nbsp;a&nbsp;line&nbsp;into&nbsp;a&nbsp;map&nbsp;event.<br>
&nbsp;<br>
event_dt:&nbsp;a&nbsp;datetime&nbsp;representing&nbsp;the&nbsp;time&nbsp;of&nbsp;the&nbsp;event<br>
line:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;line&nbsp;itself.</tt></dd></dl>

</td></tr></table></td></tr></table>
</body></html>